package net.aiform.template.pojo;

import java.io.Serializable;
import java.util.Set;

import net.aiform.pojo.Identity;

public class Field implements Serializable {
	private static final long serialVersionUID = -3572304584772845130L;
	private Identity identity;
	private String type;
	private int size;
	private int order;
	private String defaultValue;
	private String exampleValue;
	private Object value;
	private String restrain;
	private Set<Option> options;
	private boolean hidden;
	private String remark;

	public Field() {
		super();
		this.identity = new Identity();
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public String getExampleValue() {
		return exampleValue;
	}

	public Identity getIdentity() {
		return identity;
	}

	public Set<Option> getOptions() {
		return options;
	}

	public int getOrder() {
		return order;
	}

	public String getRemark() {
		return remark;
	}

	public String getRestrain() {
		return restrain;
	}

	public int getSize() {
		return size;
	}

	public String getType() {
		return type;
	}

	public Object getValue() {
		return value;
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	public void setExampleValue(String exampleValue) {
		this.exampleValue = exampleValue;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

	public void setIdentity(Identity identity) {
		this.identity = identity;
	}

	public void setOptions(Set<Option> options) {
		this.options = options;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setRestrain(String restrain) {
		this.restrain = restrain;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "Field [defaultValue=" + defaultValue + ", exampleValue=" + exampleValue + ", hidden=" + hidden + ", identity=" + identity + ", options=" + options + ", order=" + order + ", remark="
				+ remark + ", restrain=" + restrain + ", size=" + size + ", type=" + type + ", value=" + value + "]";
	}
}
